
const arr =[1,8,5,3,4,9,7,6,0]

function getSequence(arr) {
    const len = arr.length ;
    const result =[0] ;
    for (let i = 0; i < len; i++) {
        const arrI = arr[i] //当前元素
        if(arrI  !==0 ){
            let resultLastIndex =result[result.length-1];
        }
    }

}


getSequence(arr)